package api

import (
	request "gitee.com/changeden/volcengine-livesaas-request-go"
)

type UpdatePullToPushRequest struct {
	ActivityId               *int64  `json:"ActivityId"`
	LineId                   *int64  `json:"LineId"`
	PullStreamUrl            *string `json:"PullStreamUrl"`
	PullStreamStatus         *int32  `json:"PullStreamStatus"`
	PullStreamMode           *int8   `json:"PullStreamMode"`
	PullStreamLineId         *int64  `json:"PullStreamLineId"`
	PullStreamMainBackupMode *int32  `json:"PullStreamMainBackupMode"`
}

func (instance *Instance) UpdatePullToPush(data *UpdatePullToPushRequest) (*NoResultResponse, error) {
	d := request.Data{
		Action: "UpdatePullToPushAPI",
	}
	bindBody(&d, *data)
	var r NoResultResponse
	err := instance.post(&d, &r)
	return &r, err
}
